@charset "utf-8";
@import "./variables";

html {
  height: 100%;
  box-sizing: border-box;
  font-size: calc(100vw / 3.75);

  @media screen and (min-width:750px) {
    font-size: 200px;
  }
}

body {
  height: 100%;
  font-size: 0.16rem;
  line-height: 1em;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.app-container,
.tab-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.app-main,
.tab-main {
  flex: 1;
  width: 100%;
  height: 100%;
  /* 超出部分自动换行 */
  word-wrap: break-word;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background-color: $main-bgColor;
}

.clearfix {
  &::after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.btn {
  width: 44%;
  height: 0.4rem;
  font-size: 0.17rem;
  text-align: center;
  border-radius: 0.02rem;
}

.btn[disabled] {
  color: #999;
  background-color: #D9D9D9;
  border: none;
}

.btn-plain {
  background-color: #fff;
  color: #3A9BDE;
  border: 1px solid #3A9BDE;
}

.btn-primary {
  background-color: #3A9BDE;
  color: #fff;
}

input {
  $color: #333;
  $color_ph: #999;
  font-size: 0.16rem;
  color: $color;

  &:disabled {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    color: $color;
    -webkit-text-fill-color: $color;
    opacity: 1;
  }

  &::-webkit-input-placeholder {
    color: $color_ph;
  }

  &:disabled::-webkit-input-placeholder {
    color: $color_ph;
    -webkit-text-fill-color: $color_ph;
    opacity: 1;
  }

  &[readonly="readonly"] {
    pointer-events: none; //readonly下iOS光标会进入输入框
  }
}

[v-cloak] {
  display: none !important;
}

/*  覆盖Mint-UI 样式 */
.mint-msgbox-title{
  color:#5E5E5E;
  font-size: .18rem;
}
.mint-cell-value textarea{
  font-size: .13rem;
  color: #999999;
}
.mint-tab-container-wrap {
  height: 100%;
}
.mint-msgbox-cancel{
  font-size: .18rem; 
  color: #5E5E5E
}
.mint-msgbox-confirm{
  font-size: .18rem;
}
.mint-cell.mint-field {
  min-height: auto;
  background-image: none;
}

.mint-cell-wrapper {
  background-image: none;
}

.mint-switch-input:checked+.mint-switch-core {
  border-color: #44db5e;
  background-color: #44db5e;
}
.mint-switch-core,.mint-switch {
    width: .7rem;
    height: .3rem;
}
.mint-switch-label-right{
  position: absolute;
  right: .05rem;
  color: #fff;
}
.mint-switch-label-left{
  position: absolute;
  left: 0.08rem;
  margin-left: 0;
  color: #fff;
  
}
.mint-switch-core::before{
  width: .7rem;
  height: .3rem;
  background-color: #888;
}
.mint-switch-core::after{
  width: .3rem;
  height: .29rem;
}

.mint-switch-input:checked + .mint-switch-core::after{
  transform: translateX(.4rem);
}

.mint-radiolist {
  .mint-radiolist-title {
    margin: 0;
  }
  
  a.mint-cell {
    display: inline-block;
    min-height: auto;
    background-image: none;

    .mint-cell-wrapper {
      width: auto;
      padding: 0;

      .mint-radiolist-label {
        padding: 0;

        .mint-radio-label {
          margin-left: 0;
        }
      }
    }
  }
}

.mint-indicator-wrapper,
.mint-toast {
  z-index: 10000;
}
.search-wrapper{
  // padding-top: .75rem;
}
// html2canvas
#canvasImg {
  position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  span{
    font-size: .2rem;
    right: 65%;
    /* top: .2rem; */
    color: #fff;
    z-index: 9;
    padding: .06rem 0 .06rem .065rem;
    border: 1px solid #fff;
    border-radius: 50%;
    width: .3rem;
    /* height: .3rem; */
    bottom: .6rem;
    left: 45%;
    -ms-flex-wrap: wrap;
    /* flex-wrap: wrap; */
    position: absolute;
  }
  span::before{
    content: "\2715";
  }
}
.toCanvas{
    // position: absolute;
    width: 70% !important;
    // height: 70% !important;
    z-index: 9;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
  }